const { Schema, SchemaTypes, model } = require("mongoose")

const CategorySchema = new Schema({
    name: { type: String },
    parent: { type: SchemaTypes.ObjectId, ref: 'Category' }
})

module.exports = model("Category", CategorySchema)